<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理中心</title>
    <link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/base.css">
    <link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/login.css">
</head>
<body>
<div class="login">
    <div class="login-table">
    <div class="table-con">
            <form action="/fuhuaqi/statistics/index.php/Home/Index/main" method="post">
                <table>
                    <tr>
                        <td class="table-head"><img src="/fuhuaqi/statistics/Public/images/maomadmin.png" alt=""></td>
                    </tr>
                    <tr>
                        <td><p class="head-tip">忘记密码</p></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-body">
                                <i class="input-gly gly-user"></i>
                                <input type="text" class="table-input" id="username" name="username" placeholder="请输入微商账号">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-body">
                                <i class="input-gly gly-pass"></i>
                                <input type="password" class="table-input" id="password" name="password" placeholder="请输入账号密码">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="tip">
                                <input type="checkbox" id="remember" name="remember">
                                <label for="remember">记住密码</label>
                                <a href="#" id="lostpass">忘记密码了吗？</a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-footer" id="t-footer">
                                <button class="enter-sys" id="enter-sys">进入管理系统</button>
                                <a href="/fuhuaqi/statistics/index.php/Home/index/main" class="re-home" class="re-home">返回首页></a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-footer">
                                <button class="enter-sys btn" id="sure" >确定</button>
                                <button class="enter-sys btn" id="reset">重置</button>
                                </div>
                        </td>
                    </tr>
                </table>
            </form>
    </div>
    </div>
</div>

<script src="/fuhuaqi/statistics/Public/js/jquery.1.3.2.js"></script>
<script>
/* 	  $("#b1").click(function(){
     //关于不马上响应的
    	 var send_data={"username":$('#username').val(),"password":$('#password').val()};
    	  $.post("/fuhuaqi/statistics/index.php/Home/Index/do_login",send_data,function(data){
    		  if(data=="no"){
    			
    		  }else{
    			window.location.href="/fuhuaqi/statistics/index.php/Home/Index/main";   
    		  }
    		
    	  })
    	 
    }) */
</script>

</body>
</html>

<!-- <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理中心</title>
    <link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/base.css">
    <link rel="stylesheet" href="/fuhuaqi/statistics/Public/css/login.css">
</head>
<body>
<div class="login">
    <div class="login-table">
    <div class="table-con">
            <form action="#" onsubmit="return Check(true)">
                <table>
                    <tr>
                        <td class="table-head"><img src="/fuhuaqi/statistics/Public/images/maomadmin.png" alt=""></td>
                    </tr>
                    <tr>
                        <td><p class="head-tip">忘记密码</p></td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-body">
                                <i class="input-gly gly-user"></i>
                                <input type="text" class="table-input" id="username" name="username" placeholder="请输入微商账号">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-body">
                                <i class="input-gly gly-pass"></i>
                                <input type="password" class="table-input" id="password" name="password" placeholder="请输入账号密码">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="tip">
                                <input type="checkbox" id="remember" name="remember">
                                <label for="remember">记住密码</label>
                                <a href="#" id="lostpass">忘记密码了吗？</a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-footer" id="t-footer">
                                <button class="enter-sys" id="enter-sys">进入管理系统</button>
                                <a href="/fuhuaqi/statistics/index.php/Home/index/main" class="re-home">返回首页></a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="table-footer">
                                <button class="enter-sys btn" id="sure" >确定</button>
                                <button class="enter-sys btn" id="reset">重置</button>
                                </div>
                        </td>
                    </tr>
                </table>
            </form>
    </div>
    </div>
</div>

<script src="/fuhuaqi/statistics/Public/js/jquery.min.js"></script>
<script>
    $(function(){
        var u_val = $("#username").val();
        var p_val = $("#password").val();
        alert(u_val);
        var entersys =$("#enter-sys");
        var lostpass = $("#lostpass");
        var sure = $("#sure");
        var reset = $("#reset");
        var flag = true;

        function Check(){
            return flag;
        }
        entersys.click(function(){
            if((u_val = "") || (p_val = "")){
            	alert("帐号或者密码输入为空");
                flag = false;
                return false;
            }else{
                $.ajax({
                    type:"post",
                    data:{
                        username:u_val,
                        password:p_val
                    },
                    dataType:"JSON",
                    async:false,
                    success:function(){
                    }
                });
            }
        });

        lostpass.click(function(){
             $(".head-tip").show();
            $(".tip").hide()
            $("#t-footer").hide();
            $(".btn").show();
            $(".gly-pass").css("background","url(/fuhuaqi/statistics/Public/images/forget_pw_phone.png) 0.5625em .7em no-repeat");
            $("#password").attr("placeholder","请输入手机号码");
        });

        sure.click(function(){
            $(".head-tip").hide();
            $(".tip").show();
            $("#t-footer").show();
            $(".btn").hide();

        })
    });
</script>
</body>
</html> -->